package com.meida.module.bus.provider.service;

import com.meida.common.base.entity.EntityMap;
import com.meida.common.mybatis.base.service.IBaseService;
import com.meida.common.mybatis.model.ResultBody;
import com.meida.module.bus.client.entity.BusOrderAppraise;

/**
 * 订单评价表 接口
 *
 * @author flyme
 * @date 2021-08-03
 */
public interface BusOrderAppraiseService extends IBaseService<BusOrderAppraise> {

    /**
     * 统计某个解答人的评分情况
     * @param answerUserId
     * @return
     */
    EntityMap getTotalScoreInfo(Long answerUserId);

    /**
     * 统计某个学霸的评价人数
     * @param answerUserId
     * @return
     */
    Integer countAppraiseNum(Long answerUserId);
    /**
     * 统计某个学霸的评价总条数
     * @param answerUserId
     * @return
     */
    Long countTotalAppraiseNum(Long answerUserId);


    /**
     * 等待评价页面
     * @param answerUserId
     * @return
     */
    ResultBody getWaitOrderAppraiseService(Long answerUserId);

    /**
     * 根据订单Id进行统计
     * @param orderId
     * @return
     */
    Long countNumByOrderId(Long orderId);

    /**
     *
     * @param orderId
     * @return
     */
    EntityMap getOrderAppraiseInfo(Long orderId);

}
